<%@ page import="com.wzy.Jdbc封装.pojo.News_category" %>
<jsp:useBean id="category" class="com.wzy.level.category.categoryServiceImpl.categoryServiceImpl" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>增、改获取id对应单个对象信息</title>
</head>
<body>
<%--<%--%>
<%--    String sstate = request.getParameter("state");--%>
<%--    String sId = request.getParameter("id");--%>
<%--    if(sstate != null && sstate != "" && sId != null && sId != ""){--%>
<%--        int state = Integer.parseInt(sstate);--%>
<%--        int id = Integer.parseInt(sId);--%>

<%--        News_category news_category = category.selectById(id);--%>

<%--        session.setAttribute("category", news_category);--%>
<%--        session.setAttribute("state",state);--%>

<%--        request.getRequestDispatcher("category_form.jsp").forward(request,response);--%>
<%--    }--%>
<%--%>--%>
</body>
</html>
